package com.alone.mybatisplus.datascope.core.loader;


import com.alone.mybatisplus.datascope.conts.DataScopeModel;

/**
 * 无数据权限处理器<p/>
 * 放行全部拦截的查询请求
 *
 * @author Alone
 */
public class EmptyHandler extends DataScopeHandler {

    @Override
    public boolean canHandle(DataScopeModel model) {
        return DataScopeModel.EMPTY == model;
    }

    @Override
    public boolean allowAll(Long userId, DataScopeModel model) {
        return true;
    }

}
